package com.lagou.edu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description TODO
 * @Classname IEmailClient
 * @Date 2021/5/30 18:50
 * @Author ch'ien
 */

@FeignClient(value = "lagou-service-email",fallback = IEmailFallback.class,path = "/email")
public interface IEmailClient {

    @GetMapping("/{email}/{code}")
    public Boolean send(@PathVariable("email") String email,@PathVariable("code") String code );
}
